<%if @signed_user.nil? %>
<%=link_to 'Please sign in first.', :controller => '/sign', :action => 'in' %>
<% else %>
<div id="reply_post">
    <div id="reply_form_panel">
        <a name="replyit"><img src="spacer.gif" width="1px" height="1px" style="none;"/></a><h2>Post Comment</h2>
        <div class="alt_info">
            Post your comment in here.
        </div>
        <%form_tag :controller => 'comments', :action => 'create', :id => @article do %>
        <div class="reply_header">
            <img src="images/gravatar.png" width="16px" height="16px" class="comment_gravatar"/>
            <div class="comment_poster"><%=h(@signed_user.name)%>
            </div>
        </div>
        <%= render :partial => '/comments/form' %>
        <div class="form_buttons">
            <%=submit_tag 'Create', :disable_with => 'Creating...', :class => 'form_button' %>
        </div>
        <%end %>
    </div>
    <div class="alt_info">
        Comments closed.
    </div>
</div>
<!-- comment form -->
<%end %>
